package org.darcy.entity.privilege;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description="SysRoleMenu: 角色菜单")
@TableName(value = "sys_role_menu")
public class SysRoleMenu implements Serializable {

	private static final long serialVersionUID = 1L;

	@Schema(description = "")
	@TableId(type = IdType.AUTO)
	private Integer id;

	@Schema(description = "角色id")
	@TableField(value = "`role_id`")
	private Integer roleId;

	@Schema(description = "菜单id")
	@TableField(value = "`menu_id`")
	private Integer menuId;

	@Schema(description = "创建时间")
	@TableField(value = "`create_time`")
	private Date createTime;

	@Schema(description = "更新时间")
	@TableField(value = "`update_time`")
	private Date updateTime;

	@Schema(description = "删除标识：0：删除 1：存在")
	@TableField(value = "`del_flag`")
	private Integer delFlag;

	// 人员工号
	@TableField(exist = false)
	private String userNo;

	// 单个功能权限值
	@TableField(exist = false)
	private Integer position;

	// 是否选中
	@TableField(exist = false)
	private Boolean checked;

}
